package byx.container.annotation.demo.PipeDemo;

import byx.container.annotation.PackageContainer;
import byx.container.core.Container;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;

public class PipeDemo {
    @Test
    public void test() {
        Container container = new PackageContainer();
        StringProcessor processor = container.getObject(StringProcessor.class);
        assertEquals("hello p2 p1 p3", processor.process("hello"));
    }
}
